<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
      div{
        border: 1px red solid
      }
    
        
        .C{
            height: 125px;
            width:120px;
            background-image: url("精灵图.jpg");
            background-position: -230px -1px;
            background-repeat: no-repeat;
        }
        .X{
            height: 150px;
            width: 116px;
            background-image: url("精灵图.jpg");
            background-position: -247px -525px;
            background-repeat: no-repeat;
        }
    </style>
</head>
<body>
    <div class="C"></div>
    <div class="X"></div>
   
</body>
</html>